package com.ujoku.scheduled;

import com.ujoku.service.admin.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * Created by Greg.Chen on 2015/3/11.
 */
@Service
public class AdminTask {

    @Autowired
    private TaskService taskService;

    @Scheduled(initialDelay = 5000,fixedRate=60000)
    public void execute(){
        taskService.refresh();
    }


}
